<template>
  <div style="float: right;">
    <el-form :model="conditionForm" :inline="true" class="conditionForm" size="small" @submit.native.prevent>
      <el-form-item label="成本类型:">
        <el-input v-model="conditionForm.costType" placeholder="成本类型" clearable size="medium"
          @keyup.enter.native="onSubmit" />
      </el-form-item>
      <el-form-item>
        <el-button type="primary" @click="onSubmit" icon="el-icon-search" size="medium">查询</el-button>
      </el-form-item>
    </el-form>
  </div>
</template>

<script lang="ts" setup async>
import { reactive } from 'vue';

defineProps({
  accountFlag: {
    type: Boolean,
    default: false
  }
})


const conditionForm = reactive({
  costType: ""
})
const emit = defineEmits(['setCondition', 'exportItems'])
const onSubmit = () => {
  emit('setCondition', conditionForm);
}

</script>
<style lang="scss" scoped>
/**

*/
.conditionForm {
  margin-top: 10px;
}

.inputNormal {
  width: 180px;
}

.button-col-lf {
  @include button-col;
  justify-content: left;
}

.button-col-rt {
  @include button-col;
  justify-content: right;
}

.el-form-item {
  margin-left: 10px;
}
</style>
